package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.model.entity.SubscriptionEntity;

public interface SubscriptionService extends IService<SubscriptionEntity> {
    /**
     * 根据OpenId和DeviceId查找订阅信息
     */
    SubscriptionEntity findByOpenIdAndDeviceId(String openId, String deviceId);

    /**
     * 清理过期的订阅
     */
    void cleanupExpiredSubscriptions();
}